import { Router } from 'express';
import {
  createTerminal,
  sendInput,
  readOutput,
  getStats,
  listTerminals,
  killTerminal,
  healthCheck
} from '../controllers/terminalController';

const router = Router();

router.post('/terminals', createTerminal);
router.post('/terminals/:terminalId/input', sendInput);
router.get('/terminals/:terminalId/output', readOutput);
router.get('/terminals/:terminalId/stats', getStats);
router.get('/terminals', listTerminals);
router.delete('/terminals/:terminalId', killTerminal);
router.get('/health', healthCheck);

export default router;
